package ltd.tiantian.mall.dao;

import ltd.tiantian.mall.controller.vo.TianTianMallCouponVO;
import ltd.tiantian.mall.entity.TianTianMallCoupon;
import ltd.tiantian.mall.util.PageQueryUtil;

import java.util.List;

public interface TianTianMallCouponMapper {
    int deleteByPrimaryKey(Long couponId);

    int deleteBatch(Integer[] couponIds);

    int insert(TianTianMallCoupon record);

    int insertSelective(TianTianMallCoupon record);

    TianTianMallCoupon selectByPrimaryKey(Long couponId);

    int updateByPrimaryKeySelective(TianTianMallCoupon record);

    int updateByPrimaryKey(TianTianMallCoupon record);

    List<TianTianMallCoupon> findCouponlList(PageQueryUtil pageUtil);

    int getTotalCoupons(PageQueryUtil pageUtil);

    List<TianTianMallCoupon> selectAvailableCoupon();

    int reduceCouponTotal(Long couponId);

    List<TianTianMallCoupon> selectByIds(List<Long> couponIds);

    List<TianTianMallCoupon> selectAvailableGiveCoupon();

    List<TianTianMallCouponVO> selectAllCoupons();
}
